package com.sws.orderMS.pojo;

public class CreditCard implements PaymentMethod {

	protected double balance;
	
	public CreditCard(){
	}
	
	public CreditCard(double balance) {
		this.balance = balance;
	}
	
	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	@Override
	public void Pay(double total) {
		balance = balance - total;
	}

}
